import Vue from 'vue'
import Router from 'vue-router'
import Login from './views/Login'
import Home from './views/Home'
import FriendChat from "@/views/chat/FriendChat";
import HrInfo from "@/views/HrInfo";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '登录',
      component: Login,
      hidden: false
    },
    {
      path: "/home",
      name: '首页 ',
      component: Home,
      hidden: false,
      children:[
        {
          path: '/chat',
          name: '微聊天',
          component: FriendChat,
          hidden: false
        },
        {
          path: '/hrInfo',
          name: '个人中心',
          component: HrInfo,
          hidden: false
        }
      ]
    },
  ],
})
